<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> 
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/WEB-INF/tld/kouAnStatus.tld" prefix="ka" %>
<%@ taglib uri="/WEB-INF/tld/waybillStatus.tld" prefix="ws" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>审批运单</title>
		<link rel="stylesheet" type="text/css" href="btn_class.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/style.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/desktop.css" />
		<link rel="stylesheet" type="text/css"
			href="ext-2.2/ext-2.2/ext-patch.css" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

		<script type="text/javascript">
		<%String uId = (String) session.getAttribute("Uid");
			if (uId == null || uId.equals("null")) {%>
			window.parent.location.href = 'index.jsp';
		<%}%>
		function topage(currentPage){
			var f = document.forms["waybillForm"];
			f.action = "waybill!showAllwbByStatus.do?currentPage="+currentPage+"&status=unPayforStatus";
			f.submit();
		}

	
		window.onload=function(){
			if('<%=request.getAttribute("flag")%>'=='SUCCESS'){
				alert("状态更改成功!");
			}
			
		}
		function exportExcel()
		{
			var f = document.forms["waybillForm"];
			f.action = "waybill!downloadExceltoSUDA.do";
			f.submit();
		}

		function exportExcel1()
		{
			var f = document.forms["waybillForm"];
			f.action = "waybill!downloadExceltoLianHe.do";
			f.submit();
		}
		</script>
		<style type="text/css">
			.showValue6
			{
				color : #00309c;
			} 
			.bm
			{
				color : #0b5199;
				font-size : 12px;
				font-weight : bold;
			}
   		</style>
 
	</head>
	
<body style="background:white"> 
	<div class="x-panel-header x-panel-header-noborder x-unselectable" id="ext-gen8" style="mozuserselect: none; khtmluserselect: none;" unselectable="on">
		<span class="x-panel-header-text" >审批运单22</span>
	</div>
	<form name="waybillForm" method="post">
	<table width="100%" border="0" cellSpacing="3" cellPadding="3">
		<tr><td align="center" bgColor="#ffffff">		
			<table width="100%" style="border-bottom: #c2cbec 1px solid; border-left: #c2cbec 1px solid; border-top: #c2cbec 1px solid; border-right: #c2cbec 1px solid;" bgColor="#fafafa" border="0" cellSpacing="0" cellPadding="0">
			 	<tr align="center">
			 		<td width="15%" height="28" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>订单编号</b></td>
			 		<!-- 显示提交者的姓名  和 唯一标示符 -->
			 		<td width="15%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>仓库</b></td>
			 		<td width="15%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>口岸</b></td>
			 		<td width="15%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>唯一标示符</b></td>
			 		<td width="15%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>当前状态</b></td>
			 		<td width="15%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>提交日期</b></td>
			 		<td width="28%" background="images/om.gif" style="border-right: #c2cbec 1px solid;"><b>管理员操作</b></td>
			 	</tr>
			 	<s:iterator id="wb" value="waybillListByStatus">
			 	<tr align="center" class="showValue6" style="line-height: 120%;">
			 		<td height="26" style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 			<a class="bm" href="waybill!showDetails.do?T=1&wbId=<s:property value="#wb.wbId"/>"><s:property value="#wb.wbId"/></a>
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 				<s:property value="#wb.wbArea"/>&nbsp;
			 		</td>
			 			<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 			<ka:translateKouAn kouan="${wb.wbKouAn}"></ka:translateKouAn>
			 				&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 				<s:property value="#wb.Uid"/>&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 			<b>	 <ws:translateStatus enStatus="${wb.wbStatus}"></ws:translateStatus></b>&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;">
			 				<s:property value="#wb.wbSubmitTime"/>&nbsp;
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; border-top: #999999 1px solid; border-right: #c6def0 1px solid;" >
			 			<a class="bm" href="waybill!approvalWaybillA.do?wbId=<s:property value="#wb.wbId"/>&status=unPayforStatus">订单审批</a>
			 		</td>
			 	</tr>
			 	 <!-- 
			 	<tr class="showValue6" style="line-height: 120%;">	
			 		<td height="26" align="center" style="border-bottom: #c6def0 1px solid; color: #0b5199; border-right: #c6def0 1px solid;">
			 			<b>包装要求</b>
			 		</td>
			 		<td style="border-bottom: #c6def0 1px solid; padding-left: 8px; table-layout: fixed; word-break: break-all; border-right: #c6def0 1px solid;" colSpan="7">
			 			<c:if   test= "${wb.wbPackqcfp == '1'}"> 
							取出发票;
						</c:if>
						<c:if   test= "${wb.wbPackjjcl  == '1'}"> 
							加急处理;
						</c:if>
						<c:if   test= "${wb.wbPacknjjg  == '1'}"> 
							内固加件;
						</c:if>
						<c:if   test= "${wb.wbPackghwx  == '1'}"> 
							 更换外箱;
						</c:if>
						<c:if   test= "${wb.wbPackjtwx == '1'}"> 
							加套外箱;
						</c:if>
						<c:if   test= "${wb.wbPackqcnj == '1'}"> 
							去除内件;
						</c:if>
						<c:if   test= "${wb.wbPackyxzy == '1'}"> 
							原箱转发;
						</c:if>
						<c:if  test= "${wb.wbPackzdwpfx == '1'}"> 
							指定物品分箱;
						</c:if>
			 		</td>
			 	</tr>
			 	  -->
			 </s:iterator>
			 </table>
			</td>
		</tr>
		<tr>
			<td height="50" align="center" bgColor="#ffffff">
				<font >当前页:第${pageView.currentpage}页 | 总记录数:${pageView.totalrecord}条 | 每页显示:${pageView.maxresult}条 | 总页数:${pageView.totalpage}页</font>
 				<c:choose> 
 					 <c:when test="${pageView.currentpage==1}"><b><font color="#FFFFFF">第1页</font></c:when>
						 <c:otherwise><a href="javascript:topage('1')" >第1页</a></c:otherwise>
		 				</c:choose> 
		  				<c:if test="${pageView.currentpage>2}"><a href="javascript:topage('${pageView.currentpage-1}')" >上一页</a></c:if> 
		 				 <c:if test="${pageView.currentpage!=1&&pageView.currentpage!=pageView.totalpage}"><b><font color="#FFFFFF">第${pageView.currentpage}页</font></b></c:if> 
		  				 <c:if test="${pageView.currentpage<pageView.totalpage}"><a href="javascript:topage('${pageView.currentpage+1}')" >下一页</a></c:if>
					 <c:choose>
		 			 <c:when test="${pageView.currentpage<pageView.totalpage}"><a href="javascript:topage('${pageView.totalpage}')" >末页</a></c:when>
		  			<c:otherwise><b><font color="#FFFFFF">末页</font></c:otherwise>
					 </c:choose>
			</td>
		</tr>
			 
		 
		 </table>
          <!--  </form>--> 
           
    
    <br/>
    
		 </form>
	<br/><br/>
		<table width="100%" border="0" cellSpacing="3" cellPadding="3">
		<tr><td><font style="color:red">导出订单信息(速达):</font></td><td><input type="button" value="导出" class="btnSubmit" onclick="exportExcel()" /></td></tr>
		<tr><td><font style="color:red">导出订单信息(联合):</font></td><td><input type="button" value="导出" class="btnSubmit" onclick="exportExcel1()" /></td></tr>
		<tr><td>匹配上传运单号：</td><td><input type="file" id="uploadWaybiiInfo"> </td></tr>
		</table>
    </body> 
</html>
